<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<div id="map"></div>
<script charset="utf-8" src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAA8ziXUUv0UGT_QpXFZ6B3FBTwM0brOpm-All5BF6PoaKBxRWWERSLfCIUIH-otm_OfABoaO5s2oL6sA&amp;client=wickle007" type="text/javascript"></script>
<script type="text/javascript" src="http://api.maps.yahoo.com/ajaxymap?v=3.8&appid=zJakk9jV34GaWL3DGNZGtTC.nHs8vOiySZe9GXpOCOJNwlBcGiU_RKQ7AiWQ9yAEw0Q-"></script>
<script type="text/javascript">
//  IE浏览器正常

var geocoder = new GClientGeocoder()
geocoder.getLocations(new GLatLng(22.53, 114.05),
	    function(a) {
	    	try{
	    		if(typeof console != "undefined") 
	    			console.log(a);
		    	else
			    	alert(a+"  fdfff a.name:"+a.name+" \r\n address:"+a.Placemark[0].address);
	        var b = parseFloat(a.name.split(",")[0]);
	        var c = parseFloat(a.name.split(",")[1]);
			
	        if (a.Status.code != 200) {} else {
	            var d = a.Placemark[0].address;
				
	            //f(e, d)
	        }
	    	}catch(e1){ 
		    	if(typeof console != "undefined") 
			    	console.log(e1,"  a:",a);
		    	else
		    		alert(e1+"  error a.name:"+a.name
				    		+" \r\n address:"+a.Placemark+"  code:"+a.Status.code);
		     }
	    })
	    
var point = new YGeoPoint(22.560843, 114.089256);	    
console.log("yahoo point:",point);

var map = new YMap(document.getElementById('map'));


YEvent.Capture(map, "onEndGeoCode", function(e){
	console.log("onEndGeoCode:",arguments);
});
map.geoCodeAddress(point);

</script>
</body>
</html>